package PromotionStrategyFactory;

import Promotion.CashbackStrategy;
import Promotion.CouponStrategy;
import Promotion.PromotionActivity;

/**
 * @program: homeWork
 * @description:
 * @author: hezhiqin
 * @create: 2019-10-02 09:18
 */
public class Test {
    public static void main(String[] args) {
        String promotionKey = "GROUPBUY";
        PromotionActivity promotionActivity = new
                PromotionActivity(PromotionStrategyFactory.getPromotionStrategy(promotionKey));
        promotionActivity.execute();
    }
}
